package com.liupei.enums;

/**
 * 用户固定的几个权限标识,服务启动缓存在redis中
 * @ClassNameUserPerms
 * @Description
 * @Author liupei
 * @Emaile 3268727800@qq.com
 * @Date2021/3/12 17:38
 * @Version V1.0
 **/
public enum  UserPerms {
    ADMIN("user:perms:admin","最高权限"),
    GUEST("user:perms:guest","游客权限"),
    AVERAGE("user:perms:average","普通用户权限"),
    VIP("user:perms:vip","vip用户权限"),
    SYS("user:perms:sys","后台用户权限，需要根据不通用户id进行查询")
    ;

    //权限的key 缓存在redis中
    private String key;
    //描述
    private String msg;

    UserPerms(String key, String msg) {
        this.key = key;
        this.msg = msg;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
